<div class="left content_right">
	<form action="?a=ACC&acc=USER&user=EVEN&even=I" method="post" id="frm_event">
		<input class="input" type="hidden" name="hdn_event_id" id="hdn_event_id" value="<?php echo $edit_event_id; ?>">
		<?php
			if (isset($_SESSION['error_message']) && $_SESSION['error_message'])
				echo '<div class="error">'.$_SESSION['error_message'].'</div>';
		?>
		<div class="large_title"><?php echo _LB_EVENTS ?></div>
		<?php echo $v_dsp_event_list;?>
		<div class="legend">
			<div class="legend_title"><?php echo _LB_EVENT_PAGE ?></div><br/><br/>
			<div class="left w100"><?php echo _LB_EVENT_TITLE . _LB_REQUIRED ?></div>
			<div class="left">
				<input class="input" type="text" name="event_title" id="event_title" value="<?php echo $event_title; ?>">
			</div>
			<div class="clear">&nbsp;</div>
			<div class="left w100"><?php echo _LB_EVENT_DATE . _LB_REQUIRED ?></div>
			<div class="left">
				<input class="input" type="text" name="event_date" id="event_date" value="<?php echo $event_date; ?>">
				<span class="info"><?php echo _LB_DATE_INFO;?></span>
			</div>
			<div class="clear">&nbsp;</div>
			<div class="left w100"><?php echo _LB_EVENT_TIME . _LB_REQUIRED ?></div>
			<div class="left">
				<input title="<?php echo _LB_TIME_INFO;?>" class="input" type="text" name="event_time" id="event_time" value="<?php echo $event_time; ?>">
			</div>
			<div class="clear">&nbsp;</div>
			<div class="left w100"><?php echo _LB_EVENT_DETAIL ?></div>
			<div class="left">
				<textarea class="textarea" type="text" name="event_detail" id="event_detail"><?php echo $event_detail; ?></textarea>
			</div>
			<div class="clear">&nbsp;</div>
			<div align ="right">
				<a class="button blue" href="javascript:void(0)" onclick="submit();"><span class="label"><?php echo _LB_UPDATE;?></span></a>
			</div>
			<div class="clear">&nbsp;</div>
		</div>
	</form>
</div>
<div class="clear">&nbsp;</div>
<script type="text/javascript">
	head.ready(function() {
		$( "#event_date" ).datepicker({
			dateFormat: 'dd/mm/yy',
		});
		$('#event_time').timepicker({});
		$('.input').tipsy({trigger: 'focus', gravity: $.fn.tipsy.autoWE, fade: true});
	});
	function submit (){
		var event_title = $('#event_title');
		var event_date 	= $('#event_date');
		var event_time 	= $('#event_time');
		if ( isEmptyTextBox( event_title , '<?php echo _ERROR_MSG_EVENT_TITLE_NOT_EMPTY; ?>' ) ){
			return false;
		}
		if ( isEmptyTextBox( event_date , '<?php echo _ERROR_MSG_EVENT_DATE_NOT_EMPTY; ?>' ) ){
			return false;
		}
		if ( isEmptyTextBox( event_time , '<?php echo _ERROR_MSG_EVENT_TIME_NOT_EMPTY; ?>' ) ){
			return false;
		}

		$('#frm_event').submit();
	}
</script>